Package-level declarations

Types

Link copied to clipboard
class Chrono(autoUpdate: Boolean = true, source: TimeSource = TimeSource.Monotonic, units: DurationUnit = DurationUnit.SECONDS)

A utility class for measuring elapsed time. This class provides functionality to track time intervals and optionally updates the elapsed time automatically on each access.

Link copied to clipboard

A utility class for plotting data on the FTC Dashboard.

Link copied to clipboard
object FileLogger

A file-based logger with automatic file rotation and buffering. Logs are written to /sdcard/logs/ with automatic rotation when files exceed size limits.

Link copied to clipboard
object MathUtils
Link copied to clipboard
class PIDController(val kp: Double, val ki: Double = 0.0, val kd: Double = 0.0, val kf: Double = 0.0)

A PID/PIDF controller with integral clamping and output saturation.

Link copied to clipboard
class Polynomial(coeffs: DoubleArray)
Link copied to clipboard
data class Pose(val x: Double = 0.0, val y: Double = 0.0, val vx: Double = 0.0, val vy: Double = 0.0, val ax: Double = 0.0, val ay: Double = 0.0, val theta: Double = 0.0, val omega: Double = 0.0, val alpha: Double = 0.0)

Minimal 2D pose with motion derivatives. All units are in centimeters and radians.

Link copied to clipboard
class TelemetryInterface(val phone: Telemetry, val dashboard: Telemetry)

Class used to update both the phone telemetry and the dashboard telemetry. Also logs telemetry to Logcat

Link copied to clipboard
class Toggle(startState: Boolean)

This class is a wrapper class for booleans, but it allows you to negate the boolean by pressing a button. The intended use case is that there is some boolean value used in an OpMode, and you want it to change every time you press a specific button on the gamepad. Make that boolean a Toggle and call toggle(boolean) every cycle using the desired button as the input to toggle()

Functions

Link copied to clipboard
inline fun <T : Enum<T>> T.next(): T

Returns the next enum entry in a cyclic manner.